< previous page page_464 next page >

Page 464
0464-01.jpg
Figure 12.9.
Adding the Data-bound Grid Control to your project.
Now drop a standard data control on the form. Place it at the bottom of the form. Set the DatabaseName property to C:\TYSDBVB5\SOURCE\DATA\DBGRID.MDB and the RecordSource property to HeaderTable. Now place the data-bound grid tool on the form and set its DataSource property to Data1. That's all there is to it. Now save the form as DBGRID.FRM and the project as DBGRID.VBP and run the project. Your screen should look like the one in Figure 12.10.
0464-02.jpg
Figure 12.10.
Running the first data-bound grid project.
You can move through the grid by clicking the left margin of the grid control. You can also move through the grid by clicking the navigation arrows of the data control. If you select a

 
< previous page page_464 next page >

If you like this book, buy it!